<extend name="Base/common"/>

<block name="style">
    <link href="__CSS__/main.min.css" rel="stylesheet" type="text/css"/>
</block>
<block name="body">
    <include file="_nav"/>
    <div class="container">
        <div class="scoreshop">
            <div class="common_block_border">
                <h2 class="title_content" style="border-bottom: 1px solid #E9E9E9;">{:L('_ORDER_MY_')} </h2>
                <div class="not_nav_bar">
                <ul class="nav_list clearfix" style="margin-bottom: 20px;">
                    <li>
                        <a href="{:U('myGoods')}" 
                        <eq name="status" value="999">class="current"</eq>
                        >{:L('_ORDER_ALL_ACCOMPLISH_')}</a>
                    </li>
                    <li>
                        <a href="{:U('myGoods',array('status'=>'0'))}" 
                        <eq name="status" value="0">class="current"</eq>
                        >{:L('_ORDER_NOT_ACCOMPLISH_')}</a>
                    </li>
                    <li>
                        <a href="{:U('myGoods',array('status'=>'1'))}" 
                        <eq name="status" value="1">class="current"</eq>
                        >{:L('_ORDER_YES_ACCOMPLISH_')}</a>
                    </li>
                    <li>
                        <a href="{:U('myGoods',array('status'=>'2'))}" 
                        <eq name="status" value="2">class="current"</eq>
                        >{:L('_ORDER_ACCOMPLISH_')}</a>
                    </li>
                </ul>
                </div>

                <div class="goods-box">
                <volist name="contents" id="vo">
                    <div class="col-xs-3">
                        <div class="goods">
                        <div class="item_goods position_re">
                            <dl>
                                <dt>
                                    <a href="{:U('Scoreshop/Index/goodsDetail',array('id'=>$vo['goods']['id']))}">
                                        <img src="{$vo.goods.goods_img|getThumbImageById=265,265}">
                                    </a>
                                </dt>
                                <dd>
                                  <div class="title">
                                      <a class="text-ellipsis" href="{:U('Scoreshop/Index/goodsDetail',array('id'=>$vo['goods']['id']))}">
                                          <font title="{$vo.goods.goods_name|text}">{$vo.goods.goods_name}</font>
                                      </a>
                                  </div>
                              </dd>
                              <dd class="clearfix">
                                    <div class="left">
                                        <span class="need-scores">
                                        <a><font title="{:L('_NEED_')}{$money_type.title}">
                                            <i class="ico_to_money"></i>
                                                &nbsp;{$vo.goods.price} {$money_type.title}
                                            </font>
                                        </a>
                                        </span>
                                    </div>

                                    <div class="right">
                                        <a class="">{$vo.status_info}</a>
                                    </div>
                              </dd>
                              <dd>
                                <a 
                                   <if condition="$vo.status eq 0">disabled</if> 
                                   class="btn btn-block scoreshop-btn"
                                   data-toggle="modal" 
                                   data-remote="{:U('Scoreshop/index/logistic',array('id'=>$vo['id']))}" >
                                   查看物流
                                 </a>
                              </dd>
                            <div class="clearfix"></div>
                            </dl>
                        </div>
                        </div>
                    </div>
                </volist>
                </div>
                <if condition="count($contents) eq 0">
                    <div class="data-none">
                        {:L('_TIP_TRADE1_')}{:L('_TIP_TRADE2_')}
                    </div>
                </if>
            </div>

            <div class="pull-right">
                {:getPagination($totalPageCount,16)}
            </div>
        </div>
    </div>
</block>
<block name="script">
    <script>
        $(function () {
            $('.item_goods').mouseover(function () {
                $(this).addClass('item_goods_box_shadow');
            });
            $('.item_goods').mouseleave(function () {
                $(this).removeClass('item_goods_box_shadow');
            });
        });
    </script>

</block>
